#include <iostream>
using namespace std;

class A {
public:
	static void func (void)  {
		cout << "静态成员函数" << endl;
		m_data = 123;
	}
	static int m_data;
};
int A::m_data = 0;
int main (void)
{
	A::func();
	A a;
	a.func();//不推荐
	return 0;
}
